package com.example.hello;

import com.example.hello.client.NavHeader.BootstrapNavHeaderState;
import com.vaadin.ui.AbstractComponent;

public class BootstrapNavHeader extends AbstractComponent {

    public BootstrapNavHeader() {
        this("");
    }

    public BootstrapNavHeader(String text) {
        setText(text);
    }

    @Override
    protected BootstrapNavHeaderState getState() {
        return (BootstrapNavHeaderState) super.getState();
    }

    public String getText() {
        return getState().getText();
    }

    public void setText(String text) {
        getState().setText(text);
    }

}